using System;
using System.Collections.Generic;

public class ArgsHelper
{
    private readonly Dictionary<string, string> _argsDict = new();

    public ArgsHelper(string[] args)
    {
        foreach (var arg in args)
        {
            if (arg.StartsWith("--") && arg.Contains("="))
            {
                var idx = arg.IndexOf('=');
                var key = arg.Substring(2, idx - 2);
                var value = arg.Substring(idx + 1);
                _argsDict[key] = value;
            }
        }
    }

    public string GetArg(string name)
    {
        _argsDict.TryGetValue(name, out var value);
        return value;
    }
} 